from django.urls import path
from rest_framework.routers import SimpleRouter
from .views import UserViewSet, PermViewSet, menulist_view, RoleViewSet, SystemViewSet

router = SimpleRouter()
router.register('metric', SystemViewSet)
router.register('user', UserViewSet)
router.register('perms', PermViewSet)
router.register('roles', RoleViewSet)
urlpatterns = [
                  path('menulist/', menulist_view),
              ] + router.urls

print('~' * 30)
print(urlpatterns)
print('~' * 30)
